Skip to content

Conversation

@guitargeek
Copy link
Contributor

This should not be needed anymore because of the runpath mechanism, and by leaving it out from the test environment we are making sure that this keeps working.

@guitargeek guitargeek requested a review from bellenot as a code owner November 12, 2025 23:41
@guitargeek guitargeek requested review from hageboeck and removed request for bellenot November 12, 2025 23:41
@guitargeek guitargeek self-assigned this Nov 13, 2025
@github-actions
Copy link

github-actions bot commented Nov 13, 2025

Test Results

    22 files      22 suites   3d 20h 44m 51s ⏱️
 3 779 tests  3 777 ✅ 0 💤 2 ❌
81 181 runs  81 179 ✅ 0 💤 2 ❌

For more details on these failures, see this check.

Results for commit ca5317f.

♻️ This comment has been updated with latest results.

@hageboeck
Copy link
Member

The failures are understandable, because the "main" libraries and executables don't contain runpaths to find libraries that are part of tests. For these, it's probably OK to continue setting LD_LIBRARY_PATH, but $ROOTSYS/lib should not be part of it.

@guitargeek
Copy link
Contributor Author

guitargeek commented Nov 13, 2025

The failures are understandable, because the "main" libraries and executables don't contain runpaths to find libraries that are part of tests. For these, it's probably OK to continue setting LD_LIBRARY_PATH, but $ROOTSYS/lib should not be part of it.

Ok makes sense! I'll see what can be done about that.

@guitargeek guitargeek force-pushed the ld_library_path branch 5 times, most recently from b9310b6 to 3b9f2b6 Compare November 14, 2025 11:21
So far, we have only solved this problem by adding the path to
`DYLD_LIBRARY_PATH` when running the test, but this is not a complete
solution, as the libraries won't be found automatically if this is not
set. That affects in particular the users that want to use `h2root` from
the install tree.

Using the RPATH mechanism is more appropriate here.
This should not be needed anymore because of the runpath mechanism, and
by leaving it out from the test environment we are making sure that this
keeps working.
@guitargeek
Copy link
Contributor Author

Test failure is unrelated. It's because I had to remove chromium from the rawhide image, and there was no clean CMake re-configuration yet that recognized that there is no chrome browser available.

@guitargeek guitargeek merged commit 3161321 into root-project:master Nov 14, 2025
28 of 30 checks passed
@guitargeek guitargeek deleted the ld_library_path branch November 14, 2025 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants